HttpHeaders

Undocumented in source.

Members

Aliases

LAMBDA
alias LAMBDA = bool delegate(string value)

Process the ordered list of values for the given header name: for each value, the function/functor/lambda-expression given as the second parameter will be executed. It should take one const string & parameter and return bool (false to keep processing, true to stop it). Example use: hdrs.forEachValueOfHeader("someheader", [&] (const string& val) { std::cout << val; return false; }); This method returns true if processing was stopped (by func returning true), and false otherwise.

Functions

add
void add(string name, string value)
Undocumented in source.
add
void add(HTTPHeaderCode code, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
combine
string combine(string separator)

combine all the value for this header into a string

copyTo
void copyTo(HTTPHeaders header)
Undocumented in source. Be warned that the author may not have intended to support it.
dub
HTTPHeaders dub()
Undocumented in source. Be warned that the author may not have intended to support it.
exists
bool exists(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
exists
bool exists(HTTPHeaderCode code)
Undocumented in source. Be warned that the author may not have intended to support it.
forEachValueOfHeader
bool forEachValueOfHeader(string name, LAMBDA func)
Undocumented in source. Be warned that the author may not have intended to support it.
forEachValueOfHeader
bool forEachValueOfHeader(HTTPHeaderCode code, LAMBDA func)
Undocumented in source. Be warned that the author may not have intended to support it.
getNumberOfValues
size_t getNumberOfValues(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getNumberOfValues
size_t getNumberOfValues(HTTPHeaderCode code)
Undocumented in source. Be warned that the author may not have intended to support it.
getSingleOrEmpty
string getSingleOrEmpty(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getSingleOrEmpty
string getSingleOrEmpty(HTTPHeaderCode code)
Undocumented in source. Be warned that the author may not have intended to support it.
getValuesByKey
string[] getValuesByKey(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(string name, string value) opeartions)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(HTTPHeaderCode code, string name, string value) opeartions)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
bool remove(string name)

Remove all instances of the given header, returning true if anything was removed and false if this header didn't exist in our set.

remove
bool remove(HTTPHeaderCode code)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAll
void removeAll()
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(string name, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(HTTPHeaderCode code, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
size
size_t size()

Get the total number of headers.

Manifest constants

kInitialVectorReserve
enum kInitialVectorReserve;
Undocumented in source.

Meta